package net.mukia.model;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity
@Table(name = "R_ACCOUNT_TOKEN")
public class AccountToken {

	@EmbeddedId
	private RToken rToken;

	@ManyToOne
	@Cascade(value = { CascadeType.SAVE_UPDATE })
	@JoinColumn(name = "ACCOUNT_ID")
	private Account account;
	
	public RToken getrToken() {
		return rToken;
	}

	public void setrToken(RToken rToken) {
		this.rToken = rToken;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}
	
	

}
